Optimal. Leaf size=151 \[ -\frac {B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A}{2 d i^3 (c+d x)^2}+\frac {b^2 B n \log (a+b x)}{2 d i^3 (b c-a d)^2}-\frac {b^2 B n \log (c+d x)}{2 d i^3 (b c-a d)^2}+\frac {b B n}{2 d i^3 (c+d x) (b c-a d)}+\frac {B n}{4 d i^3 (c+d x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 151, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {2525, 12, 44} \[ -\frac {B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A}{2 d i^3 (c+d x)^2}+\frac {b^2 B n \log (a+b x)}{2 d i^3 (b c-a d)^2}-\frac {b^2 B n \log (c+d x)}{2 d i^3 (b c-a d)^2}+\frac {b B n}{2 d i^3 (c+d x) (b c-a d)}+\frac {B n}{4 d i^3 (c+d x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 44
Rule 2525
Rubi steps
\begin {align*} \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(154 c+154 d x)^3} \, dx &=-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{7304528 d (c+d x)^2}+\frac {(B n) \int \frac {b c-a d}{23716 (a+b x) (c+d x)^3} \, dx}{308 d}\\ &=-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{7304528 d (c+d x)^2}+\frac {(B (b c-a d) n) \int \frac {1}{(a+b x) (c+d x)^3} \, dx}{7304528 d}\\ &=-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{7304528 d (c+d x)^2}+\frac {(B (b c-a d) n) \int \left (\frac {b^3}{(b c-a d)^3 (a+b x)}-\frac {d}{(b c-a d) (c+d x)^3}-\frac {b d}{(b c-a d)^2 (c+d x)^2}-\frac {b^2 d}{(b c-a d)^3 (c+d x)}\right ) \, dx}{7304528 d}\\ &=\frac {B n}{14609056 d (c+d x)^2}+\frac {b B n}{7304528 d (b c-a d) (c+d x)}+\frac {b^2 B n \log (a+b x)}{7304528 d (b c-a d)^2}-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{7304528 d (c+d x)^2}-\frac {b^2 B n \log (c+d x)}{7304528 d (b c-a d)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 115, normalized size = 0.76 \[ \frac {\frac {B n \left (2 b^2 (c+d x)^2 \log (a+b x)+(b c-a d) (-a d+3 b c+2 b d x)-2 b^2 (c+d x)^2 \log (c+d x)\right )}{(b c-a d)^2}-2 \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{4 d i^3 (c+d x)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.91, size = 266, normalized size = 1.76 \[ -\frac {2 \, A b^{2} c^{2} - 4 \, A a b c d + 2 \, A a^{2} d^{2} - 2 \, {\left (B b^{2} c d - B a b d^{2}\right )} n x - {\left (3 \, B b^{2} c^{2} - 4 \, B a b c d + B a^{2} d^{2}\right )} n + 2 \, {\left (B b^{2} c^{2} - 2 \, B a b c d + B a^{2} d^{2}\right )} \log \relax (e) - 2 \, {\left (B b^{2} d^{2} n x^{2} + 2 \, B b^{2} c d n x + {\left (2 \, B a b c d - B a^{2} d^{2}\right )} n\right )} \log \left (\frac {b x + a}{d x + c}\right )}{4 \, {\left ({\left (b^{2} c^{2} d^{3} - 2 \, a b c d^{4} + a^{2} d^{5}\right )} i^{3} x^{2} + 2 \, {\left (b^{2} c^{3} d^{2} - 2 \, a b c^{2} d^{3} + a^{2} c d^{4}\right )} i^{3} x + {\left (b^{2} c^{4} d - 2 \, a b c^{3} d^{2} + a^{2} c^{2} d^{3}\right )} i^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.65, size = 187, normalized size = 1.24 \[ \frac {1}{4} \, {\left (2 \, {\left (\frac {2 \, {\left (b x + a\right )} B b i n}{{\left (b c - a d\right )} {\left (d x + c\right )}} - \frac {{\left (b x + a\right )}^{2} B d i n}{{\left (b c - a d\right )} {\left (d x + c\right )}^{2}}\right )} \log \left (\frac {b x + a}{d x + c}\right ) + \frac {{\left (B d i n - 2 \, A d i - 2 \, B d i\right )} {\left (b x + a\right )}^{2}}{{\left (b c - a d\right )} {\left (d x + c\right )}^{2}} - \frac {4 \, {\left (B b i n - A b i - B b i\right )} {\left (b x + a\right )}}{{\left (b c - a d\right )} {\left (d x + c\right )}}\right )} {\left (\frac {b c}{{\left (b c - a d\right )}^{2}} - \frac {a d}{{\left (b c - a d\right )}^{2}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.31, size = 0, normalized size = 0.00 \[ \int \frac {B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )+A}{\left (d i x +c i \right )^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.46, size = 259, normalized size = 1.72 \[ \frac {1}{4} \, B n {\left (\frac {2 \, b d x + 3 \, b c - a d}{{\left (b c d^{3} - a d^{4}\right )} i^{3} x^{2} + 2 \, {\left (b c^{2} d^{2} - a c d^{3}\right )} i^{3} x + {\left (b c^{3} d - a c^{2} d^{2}\right )} i^{3}} + \frac {2 \, b^{2} \log \left (b x + a\right )}{{\left (b^{2} c^{2} d - 2 \, a b c d^{2} + a^{2} d^{3}\right )} i^{3}} - \frac {2 \, b^{2} \log \left (d x + c\right )}{{\left (b^{2} c^{2} d - 2 \, a b c d^{2} + a^{2} d^{3}\right )} i^{3}}\right )} - \frac {B \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right )}{2 \, {\left (d^{3} i^{3} x^{2} + 2 \, c d^{2} i^{3} x + c^{2} d i^{3}\right )}} - \frac {A}{2 \, {\left (d^{3} i^{3} x^{2} + 2 \, c d^{2} i^{3} x + c^{2} d i^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.97, size = 221, normalized size = 1.46 \[ \frac {B\,b^2\,n\,\mathrm {atanh}\left (\frac {2\,a^2\,d^3\,i^3-2\,b^2\,c^2\,d\,i^3}{2\,d\,i^3\,{\left (a\,d-b\,c\right )}^2}+\frac {2\,b\,d\,x}{a\,d-b\,c}\right )}{d\,i^3\,{\left (a\,d-b\,c\right )}^2}-\frac {B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )}{2\,d\,\left (c^2\,i^3+2\,c\,d\,i^3\,x+d^2\,i^3\,x^2\right )}-\frac {\frac {2\,A\,a\,d-2\,A\,b\,c-B\,a\,d\,n+3\,B\,b\,c\,n}{2\,\left (a\,d-b\,c\right )}+\frac {B\,b\,d\,n\,x}{a\,d-b\,c}}{2\,c^2\,d\,i^3+4\,c\,d^2\,i^3\,x+2\,d^3\,i^3\,x^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________